﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;

namespace DTO
{
	[DataContract]
	public class User {
		public const String c_id = "id";
		private Int64 m_id = 0;
		[Key]
		[DataMember]
		public Int64  id { 
			 get {return m_id;} 
			 set { m_id = value; } 
		}

		public const String c_user_name = "user_name";
		private String m_user_name = "";
		[DataMember]
		public String  user_name { 
			 get {return m_user_name;} 
			 set { m_user_name = value; } 
		}

		public const String c_pass_word = "pass_word";
		private String m_pass_word = "";
		[DataMember]
		public String  pass_word { 
			 get {return m_pass_word;} 
			 set { m_pass_word = value; } 
		}

		public const String c_email = "email";
		private String m_email = "";
		[DataMember]
		public String  email { 
			 get {return m_email;} 
			 set { m_email = value; } 
		}

		public const String c_phone = "phone";
		private String m_phone = "";
		[DataMember]
		public String  phone { 
			 get {return m_phone;} 
			 set { m_phone = value; } 
		}

		public const String c_type_id = "type_id";
		private Int64 m_type_id = 0;
		[DataMember]
		public Int64  type_id { 
			 get {return m_type_id;} 
			 set { m_type_id = value; } 
		}

		public const String c_isdelete = "isdelete";
		private Boolean m_isdelete = false;
		[DataMember]
		public Boolean  isdelete { 
			 get {return m_isdelete;} 
			 set { m_isdelete = value; } 
		}

		public const String c_islock = "islock";
		private Boolean m_islock = false;
		[DataMember]
		public Boolean  islock { 
			 get {return m_islock;} 
			 set { m_islock = value; } 
		}

		public const String c_create_date = "create_date";
		private DateTime m_create_date = DateTime.UtcNow;
		[DataMember]
		public DateTime  create_date { 
			 get {return m_create_date;} 
			 set { m_create_date = value; } 
		}

		public const String c_loginend = "loginend";
		private DateTime m_loginend = DateTime.UtcNow;
		[DataMember]
		public DateTime  loginend { 
			 get {return m_loginend;} 
			 set { m_loginend = value; } 
		}

		public const String b_User = "User";

	}

 }
